﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreeSql;
using LearnFreeSql.Models;

namespace LearnFreeSql
{
	public static class Configure
	{

		public static IFreeSql FSql = new FreeSqlBuilder()
										.UseAutoSyncStructure(true)
										.UseConnectionString(DataType.Sqlite, "Data Source=d:\\sqlite.db")
										.Build();

		public static void SyncDB()
		{
			FSql.CodeFirst.SyncStructure<School>();
		}
	}

}
